package com.hades.xq.seckill.dao.dto;

import javax.persistence.Column;
import java.util.Date;

/**
 * @ClassName SuccessSeckilledWtihSeckillDTO
 * @Description
 * @Author Hades
 * @Date 2019-03-19:13:54
 * @Version V1.0.0
 */
public class SuccessSeckilledWtihSeckillDTO {

    @Column(name = "seckill_id")
    private Long seckillId;

    @Column(name = "user_phone")
    private Long userPhone;

    private Byte state;

    @Column(name = "create_time")
    private Date createTime;

    private TbSeckill seckill;

    public Long getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Long seckillId) {
        this.seckillId = seckillId;
    }

    public Long getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(Long userPhone) {
        this.userPhone = userPhone;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public TbSeckill getSeckill() {
        return seckill;
    }

    public void setSeckill(TbSeckill seckill) {
        this.seckill = seckill;
    }

    @Override
    public String toString() {
        return "SuccessSeckilledWtihSeckillDTO{" +
                "seckillId=" + seckillId +
                ", userPhone=" + userPhone +
                ", state=" + state +
                ", createTime=" + createTime +
                ", seckill=" + seckill +
                '}';
    }
}
